import { defHttp } from '/@/utils/http/axios';

enum Api {
  todolist = '/dashboard/getTodolist',
  list = '/sys/log/list',
  count = '/todo-list/pendingcount',
  countPie = '/distribution-chart/distributioncount',
}
/**
 * 列表接口
 * @param params
 */
export const todolist = (params) => defHttp.get({ url: Api.todolist, params });
/**
 * 查询日志列表
 * @param params
 */
export const getLogList = (params) => {
  return defHttp.get({ url: Api.list, params });
};
/**
 * 待办事项统计接口
 * @param params
 */
export const count = (params) => {
  return defHttp.get({ url: Api.count, params });
};
/**
 * 统计饼图接口
 * @param params
 */
export const countPie = (params) => {
  return defHttp.get({ url: Api.countPie, params });
};
